Skip to content

查询保险订单详情

商户通过该接口可根据商户订单号查询保险订单详情。

请求参数类型描述
out_order_nostring商户创建保险订单时的凭据号
php
$instance->v3->hirePowerBank->insuranceOrders->_out_order_no_->getAsync([
  'out_order_no' => '6e8369071cd942c0476613f9d1ce9ca3',
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/hire-power-bank/insurance-orders/{out_order_no}')->getAsync([
  'out_order_no' => '6e8369071cd942c0476613f9d1ce9ca3',
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/hire-power-bank/insurance-orders/{out_order_no}']->getAsync([
  'out_order_no' => '6e8369071cd942c0476613f9d1ce9ca3',
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->hirePowerBank->insuranceOrders->_out_order_no_->get([
  'out_order_no' => '6e8369071cd942c0476613f9d1ce9ca3',
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/hire-power-bank/insurance-orders/{out_order_no}')->get([
  'out_order_no' => '6e8369071cd942c0476613f9d1ce9ca3',
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/hire-power-bank/insurance-orders/{out_order_no}']->get([
  'out_order_no' => '6e8369071cd942c0476613f9d1ce9ca3',
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典类型描述
order_idstring租借充电宝隔夜归还保险订单号,唯一标识一笔保险订单
out_order_nostring商户创建保险订单时的凭据号
openidstring微信用户在商户对应appid下的唯一标识
max_claim_countinteger一笔保险订单对应的最大理赔次数
claimed_countinteger一笔保险订单对应的已理赔次数
order_receive_timestring保险订单领取时间,遵循rfc3339标准格式
order_begin_timestring保险订单开始时间,遵循rfc3339标准格式
order_end_timestring保险订单结束时间,遵循rfc3339标准格式
order_receive_statestring保险订单领取状态

参阅 官方文档

Published on the GitHub by TheNorthMemory